package List.Properties;

import java.io.FileOutputStream;
import java.util.Properties;

public class Test {
    public static void main(String[] args) {
        Properties pro = new Properties();
        pro.put("name","David");
        pro.put("age","26");
        try(FileOutputStream fos=new FileOutputStream("pro.propreties")){
            pro.store(fos,"this is a person");
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
